package com.breaktian.assemble.customviews.photo.photoscan;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.RelativeLayout;

import com.breaktian.assemble.R;

/**
 * Created by tiankeke on 2017/6/16.
 * 入口类
 */

public class PhotoScanView extends RelativeLayout {
    private Context mContext;
    private PsViewPager photoScanViewPager;

    public PhotoScanView(Context context) {
        super(context);
        init(context);
    }

    public PhotoScanView(Context context, AttributeSet attrs) {
        super(context, attrs);
        init(context);
    }

    public PhotoScanView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        init(context);
    }

    private void init(Context context) {
        this.mContext = context;
        LayoutInflater.from(context).inflate(R.layout.bm_layout_photo_scan_view,this);
        photoScanViewPager = (PsViewPager)findViewById(R.id.photoScanViewPager);

    }

    public void setAdapter(PhotoScanPagerAdapter photoScanPagerAdapter){
        photoScanViewPager.setAdapter(photoScanPagerAdapter);
    }







}
